/**
* 子模块路由
*/

var router = function ($urlRouterProvider, $stateProvider) {

	$stateProvider
    //设备列表
		.state('app.eqlist', {
			url: "/facediscern/eqlist",
			views: {
				'main@': {
					template: require('./views/eqlist.html'),
					controller: 'eqlist'
				}
			},
			resolve: {
        
			}
		})

    //景点列表
		.state('app.spotlist', {
			url: "/facediscern/spotlist/:areacode",
			views: {
				'main@': {
					template: require('./views/spotlist.html'),
					controller: 'spotlist'
				}
			},
			resolve: {
        
			}
		})

  //添加设备
  .state('app.createeq', {
    url: "/facediscern/createeq/:eqcode",
    views: {
      'main@': {
        template: require('./views/createeq.html'),
        controller: 'createeq'
      }
    },
    resolve: {
    
    }
    
  })

  //创建景区
  .state('app.createarea', {
  url: "/trackafter/createarea/:logincode",
  views: {
    'main@': {
      template: require('./views/createarea.html'),
      controller: 'createarea'
    }
  },
  resolve: {
    
  }
  
})

  //创建景点
  .state('app.createspot', {
    url: "/trackafter/createspot/:areacode",
    views: {
      'main@': {
        template: require('./views/createspot.html'),
        controller: 'createspot'
      }
    },
    resolve: {
      
    }
    
  })

 //审批列表
 .state('app.approvallist', {
  url: "/trackafter/approvallist",
  views: {
    'main@': {
      template: require('./views/approvallist.html'),
      controller: 'approvallist'
    }
  },
  resolve: {
    
  }
  
})

 //审批详情
 .state('app.approvalarea', {
  url: "/trackafter/approvalarea/:areacode",
  views: {
    'main@': {
      template: require('./views/approvalarea.html'),
      controller: 'approvalarea'
    }
  },
  resolve: {
    
  }
  
})

 //景区监控详情
 .state('app.areadetail', {
  url: "/trackafter/areadetail/:areacode",
  views: {
    'main@': {
      template: require('./views/areadetail.html'),
      controller: 'areadetail'
    }
  },
  resolve: {
    
  }
  
})


 //流量统计
 .state('app.lltj', {
  url: "/trackafter/lltj",
  views: {
    'main@': {
      template: require('./views/lltj.html'),
      controller: 'lltj'
    }
  },
  resolve: {
    
  }
  
})
};

module.exports = router;